package cn.javass.dp.command.example4;

public class Operation implements OperationApi {

    private int result;

    @Override
    public int getResult() {
        return result;
    }

    @Override
    public void setResult(int result) {
        this.result = result;
    }

    @Override
    public void add(int opeNum) {
        result += opeNum;
    }

    @Override
    public void substract(int opeNum) {
        result -=opeNum;
    }
}
